package com.bilibili.bilibili.model;

import java.util.List;

/**
 * 项目名称：bilibili
 * 类描述：
 * 创建人：${丁江楠}
 * 创建时间：2017/3/16 18:09
 * 修改人：${丁江楠}
 * 修改时间：2017/3/16 18:09
 * 修改备注：
 */
public class CommendDetailsModel {

    /**
     * accept_format : flv,hdmp4,mp4
     * accept_quality : [3,2,1]
     * durl : [{"backup_url":["http://ws.acgvideo.com/7/f2/15165681-1.mp4?wsTime=1489673200&platform=android&wsSecret2=300ba6c48fe09c6fea311d9987c70067&oi=3732977330&rate=850"],"length":709167,"order":1,"size":108167987,"url":"http://ws.acgvideo.com/7/f2/15165681-1-hd.mp4?wsTime=1489673200&platform=android&wsSecret2=4e455290fca8fd6c0795258f87a49924&oi=3732977330&rate=850"}]
     * format : hdmp4
     * from : local
     * result : suee
     * seek_param : start
     * seek_type : second
     * timelength : 709167
     */

    private String accept_format;
    private String format;
    private String from;
    private String result;
    private String seek_param;
    private String seek_type;
    private int timelength;
    private List<Integer> accept_quality;
    private List<DurlBean> durl;

    @Override
    public String toString() {
        return "CommendDetailsModel{" +
                "accept_format='" + accept_format + '\'' +
                ", format='" + format + '\'' +
                ", from='" + from + '\'' +
                ", result='" + result + '\'' +
                ", seek_param='" + seek_param + '\'' +
                ", seek_type='" + seek_type + '\'' +
                ", timelength=" + timelength +
                ", accept_quality=" + accept_quality +
                ", durl=" + durl +
                '}';
    }

    public String getAccept_format() {
        return accept_format;
    }

    public void setAccept_format(String accept_format) {
        this.accept_format = accept_format;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getSeek_param() {
        return seek_param;
    }

    public void setSeek_param(String seek_param) {
        this.seek_param = seek_param;
    }

    public String getSeek_type() {
        return seek_type;
    }

    public void setSeek_type(String seek_type) {
        this.seek_type = seek_type;
    }

    public int getTimelength() {
        return timelength;
    }

    public void setTimelength(int timelength) {
        this.timelength = timelength;
    }

    public List<Integer> getAccept_quality() {
        return accept_quality;
    }

    public void setAccept_quality(List<Integer> accept_quality) {
        this.accept_quality = accept_quality;
    }

    public List<DurlBean> getDurl() {
        return durl;
    }

    public void setDurl(List<DurlBean> durl) {
        this.durl = durl;
    }

    public static class DurlBean {
        /**
         * backup_url : ["http://ws.acgvideo.com/7/f2/15165681-1.mp4?wsTime=1489673200&platform=android&wsSecret2=300ba6c48fe09c6fea311d9987c70067&oi=3732977330&rate=850"]
         * length : 709167
         * order : 1
         * size : 108167987
         * url : http://ws.acgvideo.com/7/f2/15165681-1-hd.mp4?wsTime=1489673200&platform=android&wsSecret2=4e455290fca8fd6c0795258f87a49924&oi=3732977330&rate=850
         */

        private int length;
        private int order;
        private int size;
        private String url;
        private List<String> backup_url;

        @Override
        public String toString() {
            return "DurlBean{" +
                    "length=" + length +
                    ", order=" + order +
                    ", size=" + size +
                    ", url='" + url + '\'' +
                    ", backup_url=" + backup_url +
                    '}';
        }

        public int getLength() {
            return length;
        }

        public void setLength(int length) {
            this.length = length;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public List<String> getBackup_url() {
            return backup_url;
        }

        public void setBackup_url(List<String> backup_url) {
            this.backup_url = backup_url;
        }
    }
}
